package jjn.acwing.java_basic;

import java.math.BigDecimal;
import java.util.Scanner;

/**
 * @author Jjn
 * @since 2023/8/18 15:48
 */
public class Acwing662 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        BigDecimal x = new BigDecimal(scanner.next());
        BigDecimal y = new BigDecimal(scanner.next());
        BigDecimal z = x.multiply(y);
        if (x.compareTo(BigDecimal.ZERO) == 0 && y.compareTo(BigDecimal.ZERO) == 0) {
            System.out.println("Origem");
        } else if (z.compareTo(BigDecimal.ZERO) > 0) {
            if (x.compareTo(BigDecimal.ZERO) > 0) {
                System.out.println("Q1");
            } else {
                System.out.println("Q3");
            }
        } else if (z.compareTo(BigDecimal.ZERO) < 0) {
            if (x.compareTo(BigDecimal.ZERO) > 0) {
                System.out.println("Q4");
            } else {
                System.out.println("Q2");
            }
        } else if (x.compareTo(BigDecimal.ZERO) == 0) {
            System.out.println("Eixo Y");
        } else {
            System.out.println("Eixo X");
        }
    }
}
